<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User List</title>
</head>
<body>

<center>
  <font size="4"><b>Users</b></font>
</center>
<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
  <tr bgcolor="#CCCCCC">  <td><b>Username</b></td>  <td><b>Password</b></td>  <td><b>Email</b></td>    <td><b>Operation</b></td></tr>
<c:forEach var="userDomain" items="${listUsers}">
  <tr bgcolor="#FFFF88">
  <td><c:out value="${userDomain.username}"></c:out></td>
  <td><c:out value="${userDomain.password}"></c:out></td>
  <td><c:out value="${userDomain.email}"></c:out></td>
  <td>
  <a href="<c:url value="/sample/detail.do"><c:param name="id" value="${userDomain.id}"/></c:url>"><font color="BLACK">详细</font></a>
  &nbsp;
  <a href="<c:url value="/sample/edit.do"><c:param name="id" value="${userDomain.id}"/></c:url>"><font color="BLACK">修改</font></a>
  </td>
  </tr>
</c:forEach>
</table>

</body>
</html>